package com.atguigu.spzx.product.mapper;

import com.atguigu.spzx.model.dto.h5.ProductSkuDto;
import com.atguigu.spzx.model.entity.product.ProductSku;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName: ProductSkuMapper
 * Package:
 * Description:
 *
 * @Author:xiaohei
 * @Create 2024/5/22 9:27
 * Version 1.0
 */
@Mapper
public interface ProductSkuMapper {
    List<ProductSku> selectProductSkuBySal();

    List<ProductSku> findByPage(ProductSkuDto productSkuDto);

    //根据id获取ProductSku对象
    ProductSku getById(Long skuId);

    //根据商品id获取商品所有sku列表
    List<ProductSku> findByProductId(Long productId);
}
